﻿using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace StsServer.Data.Configuration
{
    //public class UserClaimConfiguration
    //{
    //}
    public class RoleClaimConfiguration : BaseEntityTypeConfiguration<IdentityRoleClaim<int>>
    {
        public override void Configure(EntityTypeBuilder<IdentityRoleClaim<int>> entityTypeBuilder)
        {
            base.Configure(entityTypeBuilder);
            entityTypeBuilder.ToTable(ApplicationTableNames.Identity.RoleClaim);

            //entityTypeBuilder.Property(x => x.Id)
            //                 .HasColumnType("TINYINT UNSIGNED");
            //entityTypeBuilder.Property(x => x.DescriptionUrl)
            //                 .HasColumnType("TEXT");
            //entityTypeBuilder.Property(x => x.Name)
            //                 .HasColumnType("VARCHAR(126)")
            //                 .IsRequired();
        }
    }
}
